package com.gitee.common.data.tree.node;

public class MoreOneTreeItemNode extends AbstractTreeItemNode implements MoreFrontTreeItemNodeI, OneNextTreeItemNodeI {

    private MoreFrontTreeItemNodeI frontSide;
    private OneNextTreeItemNodeI nextSide;

    @Override
    public int getNextLength() {
        return nextSide.getNextLength();
    }

    @Override
    public TreeItemNodeI searchNext(String id) {
        return nextSide.searchNext(id);
    }

    @Override
    public void append(TreeItemNodeI next) {
        this.nextSide.append(next);
    }

    @Override
    public void deleteNext(TreeItemNodeI node) {
        this.nextSide.deleteNext(node);
    }

    @Override
    public TreeItemNodeI getNext() {
        return nextSide.getNext();
    }

    @Override
    public TreeItemNodeI changeNext(TreeItemNodeI newer) {
        return nextSide.changeNext(newer);
    }

    @Override
    public int getFrontLength() {
        return frontSide.getFrontLength();
    }

    @Override
    public TreeItemNodeI searchFront(String id) {
        return frontSide.searchFront(id);
    }

    @Override
    public TreeItemNodeI[] getFronts() {
        return frontSide.getFronts();
    }

    @Override
    public void changeFront(TreeItemNodeI older, TreeItemNodeI newer) {
        this.frontSide.changeFront(older, newer);
    }

    @Override
    public void appendTo(TreeItemNodeI front) {
        this.frontSide.appendTo(front);
    }

    @Override
    public void deleteFront(TreeItemNodeI node) {
        this.frontSide.deleteFront(node);
    }

    @Override
    public void setFrontCap(int frontCap) {
        this.frontSide.setFrontCap(frontCap);
    }
}
